<template>
  <div v-if="show" class="footer-comp">
    <slot v-if="$slots.footer" name="footer"></slot>
    <p v-else>版权所有©2020浙江华东工程建设管理有限公司</p>
  </div>
</template>

<script>
export default {
  name: 'footerComp',
  data() {
    return {};
  },
  computed: {
    show() {
      const showPage = ['login'];
      return showPage.includes(this.$route.name);
    }
  }
};
</script>

<style scoped lang="scss">
.footer-comp {
  width: 100%;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  position: fixed;
  bottom: 0px;
}
</style>
